package step3.question;

public class Book {

    private String title;
    private String author;
    private String press;
    private String ISBN;
    private double price;

    public Book(String title, String author, String press, String ISBN, double price)
    {
        this.title = title;
        this.author = author;
        this.press = press;
        this.ISBN = ISBN;
        this.price = price;
    }

    public String getTitle() {
        return title;
    }
    public String getAuthor() {
        return author;
    }
    public String getPress() {
        return press;
    }
    public double getPrice() {
        return price;
    }
    public String getISBN() {
        return ISBN;
    }

    public void setBook(String title, String author, String press, String ISBN, double price) {
        this.title = title;
        this.author = author;
        this.press = press;
        this.ISBN = ISBN;
        this.price = price;
    }

    public void printInfo() {
        System.out.println(title + "\t" + author + "\t" + press + "\t"+ ISBN + "\t"+ price);
    }
    int a=0;
}